/**
 * Copyright (C) BFH www.bfh.ch 2011
 * Code written by: Patrick Dobler, Marc Folly
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package ch.bfh.ti.kybernetik.gui.slick.components;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;

/**
 * This Interfaces defines a {@link SlickComponent} which is responsible to
 * render the given Model Class
 * 
 * @param <T>
 *            the Model Instance that the {@link SlickComponent} uses
 */
public interface SlickComponent<T> {

	/**
	 * Renders the {@link SlickComponent} on the Slick GUI
	 * 
	 * @param gc
	 * @param g
	 * @throws SlickException
	 */
	public void render(GameContainer gc, Graphics g) throws SlickException;

	/**
	 * Returns the underling model instance
	 * 
	 * @return the underling model instance
	 */
	public T getModelObject();

}